/**
 * 	 Copyright (c) 2008, 2009 Lukas Zaruba
 * 
 *   This file is part of UniAnalyzer (Universal Analyzer).
 *
 *   UniAnalyzer is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UniAnalyzer is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License
 *   along with UniAnalyzer. If not, see <http://www.gnu.org/licenses/>.
 */

package net.zarubsys.unianalyzer.dataminers.lpt.gui.parameterObject;

import java.io.Serializable;

/**
 * PortSettings
 *
 * @author  &lt;A HREF=&quot;mailto:lukas.zaruba@media-solutions.cz&quot;&gt;Lukas Zaruba&lt;/A&gt;, MEDIA SOLUTIONS CZECH REPUBLIC Ltd.
 * @version $Revision$ $Date$
 */
public class PortSettings implements Serializable, Cloneable {
	private static final long serialVersionUID = -2853318276257575185L;
	
	private int portNumber;
	private int portOffset;
	private int frequency;
	private int unitsComboValue;
	private String unitsComboValueDescription;
	
	public String getUnitsComboValueDescription() {
		return unitsComboValueDescription;
	}

	public void setUnitsComboValueDescription(String unitsComboValueDescription) {
		this.unitsComboValueDescription = unitsComboValueDescription;
	}

	public int getPortNumber() {
		return portNumber;
	}

	public void setPortNumber(int portNumber) {
		this.portNumber = portNumber;
	}

	public int getPortOffset() {
		return portOffset;
	}

	public void setPortOffset(int portOffset) {
		this.portOffset = portOffset;
	}

	public int getFrequency() {
		return frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	public int getUnitsComboValue() {
		return unitsComboValue;
	}

	public void setUnitsComboValue(int unitsComboValue) {
		this.unitsComboValue = unitsComboValue;
	}
	
	@Override
	public int hashCode() {
		int hash = 31;
		hash *= (portNumber * frequency) ^ portOffset + unitsComboValue;
		hash ^= unitsComboValueDescription.hashCode();
		return hash;
	}
	
	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

}


/*
 * $Log$
 */